﻿<%@ Page Language="VB" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace='Microsoft.Reporting.WebForms' %>
<%@ Import Namespace='System.Collections.Generic' %>

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
            Height="500px" Width="100%">
            <LocalReport ReportPath="Reports\report_staff2.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                        Name="report_staff1_USP_List_staff_report1" />
                </DataSources>
            </LocalReport>

        </rsweb:ReportViewer>


        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetDepartmentForStaff" TypeName="StpDepartment">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="department_code" 
                    QueryStringField="department_code" Type="String" />
                <asp:QueryStringParameter DefaultValue="0" Name="staff_status" 
                    QueryStringField="staff_status" Type="Int32" />
                <asp:SessionParameter Name="ctx_staff_code" SessionField="staff_code" 
                    Type="Int32" DefaultValue="" />
                <asp:SessionParameter DefaultValue="" Name="ctx_department_code" 
                    SessionField="departent_code" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>


        <%--<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetDepartmentForStaff" TypeName="StpDepartment">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="department_code" 
                    QueryStringField="department_code" Type="String" />
                <asp:QueryStringParameter DefaultValue="0" Name="staff_status" 
                    QueryStringField="staff_status" Type="Int32" />
                <asp:SessionParameter DefaultValue="0" Name="ctx_staff_code" 
                    SessionField="staff_code" Type="Int32" />
                <asp:SessionParameter DefaultValue="0" Name="ctx_department_code" 
                    SessionField="department_code" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>--%>

    </div>
    </form>
</body>
</html>
